package com.digdes.calendar.gwt.client.dto;

/**
 * User: Dmitry
 * Date: 28.04.12
 * Time: 9:14
 */

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class EventDTOImpl implements Serializable {
    private Long id;
    private String nameEvent;
    private String description;
    private boolean isAllDay;
    private boolean isNeedNotice;
    private Date dateStart;
    private Date dateFinish;
    private String myPlace;
    private Set<FileDTOImpl> files = new HashSet<FileDTOImpl>(0);
    private PlaceDTOImpl place;
    private UserDTOImpl author;
    private Set<EventParticipantDTOImpl> participants = new HashSet<EventParticipantDTOImpl>(0);

    public EventDTOImpl(Long id, String nameEvent, String description, boolean isAllDay, boolean isNeedNotice,
                        Date dateStart, Date dateFinish, String myPlace,Set<FileDTOImpl> files,
                        PlaceDTOImpl place, UserDTOImpl author, Set<EventParticipantDTOImpl> participants) {
        this.id = id;
        this.nameEvent = nameEvent;
        this.description = description;
        this.isAllDay = isAllDay;
        this.isNeedNotice = isNeedNotice;
        this.dateStart = dateStart;
        this.dateFinish = dateFinish;
        this.myPlace = myPlace;
        this.files = files;
        this.place = place;
        this.author = author;
        this.participants = participants;
    }

    public EventDTOImpl() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNameEvent() {
        return nameEvent;
    }

    public void setNameEvent(String nameEvent) {
        this.nameEvent = nameEvent;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isAllDay() {
        return isAllDay;
    }

    public void setAllDay(boolean allDay) {
        isAllDay = allDay;
    }

    public boolean isNeedNotice() {
        return isNeedNotice;
    }

    public void setNeedNotice(boolean needNotice) {
        isNeedNotice = needNotice;
    }

    public Date getDateStart() {
        return dateStart;
    }

    public void setDateStart(Date dateStart) {
        this.dateStart = dateStart;
    }

    public Date getDateFinish() {
        return dateFinish;
    }

    public void setDateFinish(Date dateFinish) {
        this.dateFinish = dateFinish;
    }

    public Set<FileDTOImpl> getFiles() {
        return files;
    }

    public void setFiles(Set<FileDTOImpl> files) {
        this.files = files;
    }

    public String getMyPlace() {
        return myPlace;
    }

    public void setMyPlace(String myPlace) {
        this.myPlace = myPlace;
    }

    public PlaceDTOImpl getPlace() {
        return place;
    }

    public void setPlace(PlaceDTOImpl place) {
        this.place = place;
    }

    public UserDTOImpl getAuthor() {
        return author;
    }

    public void setAuthor(UserDTOImpl author) {
        this.author = author;
    }

    public Set<EventParticipantDTOImpl> getParticipants() {
        return participants;
    }

    public void setParticipants(Set<EventParticipantDTOImpl> participants) {
        this.participants = participants;
    }
}
